<template>
  <div id="rewardtargetlist"> 


          <el-table :data="datalist" style="width: 100%" :height="dtheight" :header-cell-style="{background:'#4F81BC',color:'white'}"
          :row-class-name="tableRowClassName"  :border="true">

               
                <el-table-column label="奖励类型"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span v-if="scope.row.type == 1">积分</span>
                        <span v-if="scope.row.type == 2">彩蛋天数</span>
                    </template>
                </el-table-column>
                <el-table-column label="彩蛋天数/积分"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.num }}</span>
                    </template>
                </el-table-column>
                
 
           </el-table>  

   </div>
</template>

<script>

export default {
   name: 'rewardtargetlist',
   props:{
      datalist:{  
        //type:Array,
       default:()=>[]
     },
  },
  data () {
    return {
        dtheight:'500',  //窗口高度
    }
  },
   components:{

  },
  created(){
     this.dtheight = window.innerHeight - 295
      
  },
  mounted (){
    
  },
  methods: {
  


  }
}
</script>


<style scoped>

</style>